========================================
  Discord Bot – RawIntel Lookup
  Setup Instructions
========================================

[1] Prerequisites
-----------------
- A VPS (Ubuntu/Debian) with Node.js 18+ installed.
- Your Discord bot token (from Discord Developer Portal).
- Your RawIntel API key (from your dashboard).

[2] Download the bot code
--------------------------
- Download the bot zip file from:
  https://rawintel.net/static/downloads/discord_bot.zip
  (or use wget on your VPS)

Example:
  wget https://rawintel.net/static/downloads/discord_bot.zip
  unzip discord_bot.zip
  cd discord_bot

[3] Install dependencies
------------------------
  npm install

[4] Configure your tokens
-------------------------
Create a .env file:
  nano .env

Add these lines (replace with your actual tokens):
  DISCORD_TOKEN=your_discord_bot_token_here
  RAWINTEL_API_KEY=your_rawintel_api_key_here

Save (Ctrl+X, Y, Enter).

[5] Run the bot (keep alive with pm2)
--------------------------------------
Test first:
  node index.js

If it works, stop with Ctrl+C and install pm2:
  sudo npm install -g pm2
  pm2 start index.js --name rawintel-discord
  pm2 save
  pm2 startup

Your bot is now online 24/7.

[6] Using the bot
-----------------
Invite your bot to a Discord server (needs `applications.commands` scope).
Type /lookup <Discord ID> in any channel.

[7] Updating
-------------
  cd ~/discord_bot
  git pull   (if you use git) or re-download the zip
  pm2 restart rawintel-discord 